home *** CD-ROM | disk | FTP | other *** search
/ The Best of MacTutor - S…e Code for Volumes 1 to 5 / The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin / Source Code / #21 (Jun 87) / format source / Format.r < prev    next >
Text File  |  1987-05-07  |  15KB  |  886 lines

  1. /*  Format.r    3/1/87    Timothy Standing
  2.     Resources for the SCSI formatting program.*/
  3. #include "Types.r"
  4.  
  5. /* These define's are used in the MENU resources to disable specific
  6.    menu items. */
  7. #define AllItems    0b1111111111111111111111111111111    /* 31 flags */
  8. #define MenuItem1    0b00001
  9. #define MenuItem2    0b00010
  10. #define MenuItem3    0b00100
  11. #define MenuItem4    0b01000
  12. #define MenuItem5    0b10000
  13.  
  14. resource 'MENU' (128, "Apple", preload,nonpurgeable) {
  15.     128, textMenuProc,
  16.     AllItems & ~MenuItem2,    /* Disable item #2 */
  17.     enabled, apple,
  18.     {
  19.         "About Format",
  20.             noicon, nokey, nomark, plain;
  21.         "-",
  22.             noicon, nokey, nomark, plain
  23.     }
  24. };
  25.  
  26. resource 'MENU' (129, "File", preload,nonpurgeable) {
  27.     129, textMenuProc,
  28.     allEnabled,
  29.     enabled, "File",
  30.     {
  31.         "Quit",
  32.             noicon, nokey, nomark, plain
  33.     }
  34. };
  35.  
  36. resource 'MENU' (130, "Edit", preload,nonpurgeable) {
  37.     130, textMenuProc,
  38.     AllItems & ~(MenuItem1 | MenuItem2),    /* Disable items #1 & #2 */
  39.     enabled, "Edit",
  40.      {
  41.         "Undo",
  42.             noicon, "Z", nomark, plain;
  43.         "-",
  44.             noicon, nokey, nomark, plain;
  45.         "Cut",
  46.             noicon, "X", nomark, plain;
  47.         "Copy",
  48.             noicon, "C", nomark, plain;
  49.         "Paste",
  50.             noicon, "V", nomark, plain;
  51.         "Clear",
  52.             noicon, nokey, nomark, plain
  53.     }
  54. };
  55.  
  56. resource 'MENU' (131, "SCSI", preload,nonpurgeable) {
  57.     131, textMenuProc,
  58.     allEnabled,
  59.     enabled, "SCSI",
  60.      {
  61.         "Select Address",
  62.             noicon, nokey, nomark, plain;
  63.         "Parameters",
  64.             noicon, nokey, nomark, plain;
  65.         "Enter Defects",
  66.             noicon, nokey, nomark, plain;
  67.         "Format",
  68.             noicon, nokey, nomark, plain;
  69.         "Reset",
  70.             noicon, nokey, nomark, plain
  71.     }
  72. };
  73.  
  74. resource 'DLOG' (128,"About Format",preload,nonpurgeable) {
  75.     {106, 106, 290, 406},
  76.     dBoxProc, visible, noGoAway, 0x0, 128, ""
  77. };
  78.  
  79. resource 'DITL' (128,preload,nonpurgeable) {
  80.      {
  81. /* 1 */ {141,202,161,273},
  82.         button {
  83.             enabled,
  84.             "OK"
  85.         };
  86. /* 2 */ {15,27,41,274},                
  87.         staticText {
  88.             enabled,
  89.             "A formatting program for MacTutor™"
  90.         };
  91. /* 3 */ {46,97,69,204},                /* Author Item */
  92.         staticText {
  93.             enabled,
  94.             "by Tim Standing"
  95.         };
  96. /* 4 */ {81,46,101,260},
  97.         staticText {
  98.             enabled,
  99.             "For help with this program see"
  100.         };
  101. /* 5 */ {101,46,119,260},
  102.         staticText {
  103.             disabled,
  104.             "the June '87 issue of MacTutor™"
  105.         };
  106. /* 6 */ {141,31,156,172},
  107.         staticText {
  108.             enabled, 
  109.             "© 1987 Tim Standing"
  110.         }
  111.     }
  112. };
  113.  
  114. resource 'DLOG' (129,"Select Address",preload,nonpurgeable) {
  115.     {54,99,295,391},
  116.     dBoxProc, visible, noGoAway, 0x0, 129, ""
  117. };
  118.  
  119. resource 'DITL' (129,preload,nonpurgeable) {
  120.      {
  121. /* 1 */ {195,75,215,135},
  122.         button {
  123.             enabled,
  124.             "Select"
  125.         };
  126. /* 2 */ {195,160,215,220},
  127.         button {
  128.             enabled,
  129.             "Cancel"
  130.         };
  131. /* 3 */ {55,75,75,115},                
  132.         RadioButton {
  133.             enabled,
  134.             "#0"
  135.         };
  136. /* 4 */ {85,75,105,115},            
  137.         RadioButton {
  138.             enabled,
  139.             "#1"
  140.         };
  141. /* 5 */ {115,75,135,115},
  142.         RadioButton {
  143.             enabled,
  144.             "#2"
  145.         };
  146. /* 6 */ {145,75,165,115},
  147.         RadioButton {
  148.             enabled,
  149.             "#3"
  150.         };
  151. /* 7 */ {55,175,75,215},
  152.         RadioButton {
  153.             enabled, 
  154.             "#4"
  155.         };
  156. /* 8 */ {85,175,105,215},
  157.         RadioButton {
  158.             enabled,
  159.             "#5"
  160.         };
  161. /* 9 */ {115,175,135,215},
  162.         RadioButton {
  163.             enabled,
  164.             "#6"
  165.         };
  166. /* 10 */ {145,175,160,215},
  167.         RadioButton {
  168.             disabled,
  169.             "#7"
  170.         };
  171. /* 11 */ {160,175,175,285},
  172.         staticText {
  173.             disabled,
  174.             "(Mac's Address)"
  175.         };
  176. /* 12 */ {12,35,30,258},
  177.         staticText {
  178.             disabled,
  179.             "Please select the SCSI address of"
  180.         };
  181. /* 13 */ {27,35,47,263},
  182.         staticText {
  183.             disabled,
  184.             "the hard disk you wish to format:"
  185.         }
  186.     }
  187. };
  188.  
  189. resource 'DLOG' (130,"Enter Parameters",preload,nonpurgeable) {
  190.     {33,43,330,469},
  191.     dBoxProc, visible, noGoAway, 0x0, 130, ""
  192. };
  193.  
  194. resource 'DITL' (130,preload,nonpurgeable) {
  195.      {
  196. /* 1 */ {260,345,280,405},
  197.         button {
  198.             enabled,
  199.             "OK"
  200.         };
  201. /* 2 */ {230,345,250,405},
  202.         button {
  203.             enabled,
  204.             "Cancel"
  205.         };
  206. /* 3 */ {73,115,93,158},                
  207.         RadioButton {
  208.             enabled,
  209.             "1:1"
  210.         };
  211. /* 4 */ {73,175,93,219},            
  212.         RadioButton {
  213.             enabled,
  214.             "2:1"
  215.         };
  216. /* 5 */ {73,235,93,278},
  217.         RadioButton {
  218.             enabled,
  219.             "3:1"
  220.         };
  221. /* 6 */ {73,295,93,338},
  222.         RadioButton {
  223.             enabled,
  224.             "4:1"
  225.         };
  226. /* 7 */ {103,135,123,402},
  227.         RadioButton {
  228.             enabled, 
  229.             "3.0 mSec (ST506-Nonbuffered Seeks)"
  230.         };
  231. /* 8 */ {123,135,143,375},
  232.         RadioButton {
  233.             enabled,
  234.             "28 uSec (ST412-Buffered Seeks)"
  235.         };
  236. /* 9 */ {143,135,163,415},
  237.         RadioButton {
  238.             enabled,
  239.             "12 uSec (Pseudo ST412-Buffered Seeks)"
  240.         };
  241. /* 10 */ {173,170,188,222},
  242.         EditText {
  243.             disabled,
  244.             "0"
  245.         };
  246. /* 11 */ {203,170,218,222},
  247.         EditText {
  248.             disabled,
  249.             "0"
  250.         };
  251. /* 12 */ {233,245,248,297},
  252.         EditText {
  253.             disabled,
  254.             "0"
  255.         };
  256. /* 13 */ {263,245,278,297},
  257.         EditText {
  258.             disabled,
  259.             "0"
  260.         };
  261. /* 14 */ {12,44,27,374},
  262.         StaticText {
  263.             disabled,
  264.             "Please enter the parameters for the disk that"
  265.         };
  266. /* 15 */ {27,44,43,390},
  267.         StaticText {
  268.             disabled,
  269.             "you wish to format.  Enter a zero for each unused"
  270.         };
  271. /* 16 */ {43,43,58,303},
  272.         StaticText {
  273.             disabled,
  274.             "field.  All numbers are decimal."
  275.         };
  276. /* 17 */ {73,15,88,107},
  277.         StaticText {
  278.             disabled,
  279.             "Interleave:"
  280.         };
  281. /* 18 */ {103,15,118,130},
  282.         StaticText {
  283.             disabled,
  284.             "Step Pulse Rate:"
  285.         };
  286. /* 19 */ {173,15,188,144},
  287.         StaticText {
  288.             disabled,
  289.             "Number of Heads:"
  290.         };
  291. /* 20 */ {203,15,218,162},
  292.         StaticText {
  293.             disabled,
  294.             "Number of Cylinders:"
  295.         };
  296. /* 21 */ {233,15,248,239},
  297.         StaticText {
  298.             disabled,
  299.             "Reduced Write Current Cylinder:"
  300.         };
  301. /* 22 */ {263,15,278,240},
  302.         StaticText {
  303.             disabled,
  304.             "Write Precompensation Cylinder:"
  305.         }
  306.     }
  307. };
  308. resource 'DLOG' (131,"Enter Defects",preload,nonpurgeable) {
  309.     {31,16,331,496},
  310.     dBoxProc, visible, noGoAway, 0x0, 131, ""
  311. };
  312.  
  313. resource 'DITL' (131,preload,nonpurgeable) {
  314.      {
  315. /* 1 */ {10,400,30,460},
  316.         button {
  317.             enabled,
  318.             "OK"
  319.         };
  320. /* 2 */ {40,400,60,460},
  321.         button {
  322.             enabled,
  323.             "More"
  324.         };
  325. /* 3 */ {70,400,90,460},
  326.         button {
  327.             enabled,
  328.             "Cancel"
  329.         };
  330. /* 4 */ {120,50,135,85},
  331.         EditText {
  332.             enabled,
  333.             "0"
  334.         };
  335. /* 5 */ {120,115,135,140},
  336.         EditText {
  337.             enabled,
  338.             "0"
  339.         };
  340. /* 6 */ {120,160,135,210},
  341.         EditText {
  342.             enabled,
  343.             "0"
  344.         };
  345. /* 7 */ {150,50,165,85},
  346.         EditText {
  347.             enabled,
  348.             "0"
  349.         };
  350. /* 8 */ {150,115,165,140},
  351.         EditText {
  352.             enabled,
  353.             "0"
  354.         };
  355. /* 9 */ {150,160,165,210},
  356.         EditText {
  357.             enabled,
  358.             "0"
  359.         };
  360. /* 10 */ {180,50,195,85},
  361.         EditText {
  362.             enabled,
  363.             "0"
  364.         };
  365. /* 11 */ {180,115,195,140},
  366.         EditText {
  367.             enabled,
  368.             "0"
  369.         };
  370. /* 12 */ {180,160,195,210},
  371.         EditText {
  372.             enabled,
  373.             "0"
  374.         };
  375. /* 13 */ {210,50,225,85},
  376.         EditText {
  377.             enabled,
  378.             "0"
  379.         };
  380. /* 14 */ {210,115,225,140},
  381.         EditText {
  382.             enabled,
  383.             "0"
  384.         };
  385. /* 15 */ {210,160,225,210},
  386.         EditText {
  387.             enabled,
  388.             "0"
  389.         };
  390. /* 16 */ {240,50,255,85},
  391.         EditText {
  392.             enabled,
  393.             "0"
  394.         };
  395. /* 17 */ {240,115,255,140},
  396.         EditText {
  397.             enabled,
  398.             "0"
  399.         };
  400. /* 18 */ {240,160,255,210},
  401.         EditText {
  402.             enabled,
  403.             "0"
  404.         };
  405. /* 19 */ {270,50,285,85},
  406.         EditText {
  407.             enabled,
  408.             "0"
  409.         };
  410. /* 20 */ {270,115,285,140},
  411.         EditText {
  412.             enabled,
  413.             "0"
  414.         };
  415. /* 21 */ {270,160,285,210},
  416.         EditText {
  417.             enabled,
  418.             "0"
  419.         };
  420. /* 22 */ {120,290,135,325},
  421.         EditText {
  422.             enabled,
  423.             "0"
  424.         };
  425. /* 23 */ {120,355,135,380},
  426.         EditText {
  427.             enabled,
  428.             "0"
  429.         };
  430. /* 24 */ {120,400,135,450},
  431.         EditText {
  432.             enabled,
  433.             "0"
  434.         };
  435. /* 25 */ {150,290,165,325},
  436.         EditText {
  437.             enabled,
  438.             "0"
  439.         };
  440. /* 26 */ {150,355,165,380},
  441.         EditText {
  442.             enabled,
  443.             "0"
  444.         };
  445. /* 27 */ {150,400,165,450},
  446.         EditText {
  447.             enabled,
  448.             "0"
  449.         };
  450. /* 28 */ {180,290,195,325},
  451.         EditText {
  452.             enabled,
  453.             "0"
  454.         };
  455. /* 29 */ {180,355,195,380},
  456.         EditText {
  457.             enabled,
  458.             "0"
  459.         };
  460. /* 30 */ {180,400,195,450},
  461.         EditText {
  462.             enabled,
  463.             "0"
  464.         };
  465. /* 31 */ {210,290,225,325},
  466.         EditText {
  467.             enabled,
  468.             "0"
  469.         };
  470. /* 32 */ {210,355,225,380},
  471.         EditText {
  472.             enabled,
  473.             "0"
  474.         };
  475. /* 33 */ {210,400,225,450},
  476.         EditText {
  477.             enabled,
  478.             "0"
  479.         };
  480. /* 34 */ {240,290,255,325},
  481.         EditText {
  482.             enabled,
  483.             "0"
  484.         };
  485. /* 35 */ {240,355,255,380},
  486.         EditText {
  487.             enabled,
  488.             "0"
  489.         };
  490. /* 36 */ {240,400,255,450},
  491.         EditText {
  492.             enabled,
  493.             "0"
  494.         };
  495. /* 37 */ {270,290,285,325},
  496.         EditText {
  497.             enabled,
  498.             "0"
  499.         };
  500. /* 38 */ {270,355,285,380},
  501.         EditText {
  502.             enabled,
  503.             "0"
  504.         };
  505. /* 39 */ {270,400,285,450},
  506.         EditText {
  507.             enabled,
  508.             "0"
  509.         };
  510. /* 40 */ {10,15,25,375},
  511.         StaticText    {
  512.         disabled,
  513.         "Please enter the list of defects that came with your"
  514.         };
  515. /* 41 */ {25,15,40,375},
  516.         StaticText    {
  517.         disabled,
  518.         "disk drive.  Enter the Head #, Cylinder #, and Bytes"
  519.         };
  520. /* 42 */ {40,15,55,375},
  521.         StaticText    {
  522.         disabled,
  523.         "From Index (BFI) value for each defect.  Enter" 
  524.         };
  525. /* 43 */ {55,15,70,370},
  526.         StaticText    {
  527.         disabled,
  528.         "defects in order of increasing cylinder #.  If you"
  529.         };
  530. /* 44 */ {70,15,85,370},
  531.         StaticText    {
  532.         disabled,
  533.         "have more than 12 defects, click on the More Button."
  534.         };
  535. /* 45 */ {120,10,135,45},
  536.         StaticText    {
  537.         disabled,
  538.         "#1:"
  539.         };
  540. /* 46 */ {150,10,165,45},
  541.         StaticText    {
  542.         disabled,
  543.         "#2:"
  544.         };
  545. /* 47 */ {180,10,195,45},
  546.         StaticText    {
  547.         disabled,
  548.         "#3:"
  549.         };
  550. /* 48 */ {210,10,225,45},
  551.         StaticText    {
  552.         disabled,
  553.         "#4:"
  554.         };
  555. /* 49 */ {240,10,255,45},
  556.         StaticText    {
  557.         disabled,
  558.         "#5:"
  559.         };
  560. /* 50 */ {270,10,285,45},
  561.         StaticText    {
  562.         disabled,
  563.         "#6:"
  564.         };
  565. /* 51 */ {120,250,135,285},
  566.         StaticText    {
  567.         disabled,
  568.         "#7:"
  569.         };
  570. /* 52 */ {150,250,165,285},
  571.         StaticText    {
  572.         disabled,
  573.         "#8:"
  574.         };
  575. /* 53 */ {180,250,195,285},
  576.         StaticText    {
  577.         disabled,
  578.         "#9:"
  579.         };
  580. /* 54 */ {210,250,225,285},
  581.         StaticText    {
  582.         disabled,
  583.         "#10:"
  584.         };
  585. /* 55 */ {240,250,255,285},
  586.         StaticText    {
  587.         disabled,
  588.         "#11:"
  589.         };
  590. /* 56 */ {270,250,285,285},
  591.         StaticText    {
  592.         disabled,
  593.         "#12:"
  594.         };
  595. /* 57 */ {95,30,110,100},
  596.         StaticText    {
  597.         disabled,
  598.         "Cylinder:"
  599.         };
  600. /* 58 */ {95,110,110,155},
  601.         StaticText    {
  602.         disabled,
  603.         "Head:"
  604.         };
  605. /* 59 */ {95,165,110,200},
  606.         StaticText    {
  607.         disabled,
  608.         "BFI:"
  609.         };
  610. /* 60 */ {95,270,110,340},
  611.         StaticText    {
  612.         disabled,
  613.         "Cylinder:"
  614.         };
  615. /* 61 */ {95,350,110,395},
  616.         StaticText    {
  617.         disabled,
  618.         "Head:"
  619.         };
  620. /* 62 */ {95,410,110,445},
  621.         StaticText    {
  622.         disabled,
  623.         "BFI:"
  624.         }
  625.     }
  626. };
  627. resource 'ALRT' (132,"Format Alert",preload,nonpurgeable) {
  628.     {100,100,250,400},
  629.     132, 
  630.     {
  631.     Cancel, visible,2;
  632.     Cancel,visible,2;
  633.     Cancel,visible,2;
  634.     Cancel,Visible,2
  635.     }
  636. };
  637.  
  638. resource 'DITL' (132,preload,nonpurgeable) {
  639.      {
  640. /* 1 */ {115,75,135,135},
  641.         button {
  642.             enabled,
  643.             "OK"
  644.         };
  645. /* 2 */ {115,165,135,225},
  646.         button {
  647.             enabled,
  648.             "Cancel"
  649.         };
  650. /* 3 */ {30,80,45,290},
  651.         StaticText {
  652.             disabled,
  653.             "Do you really want to format"
  654.         };
  655.  
  656. /* 4 */ {45,80,60,290},
  657.         StaticText {
  658.             disabled,
  659.             "disk drive #^0?  It will erase"
  660.         };
  661. /* 5 */ {60,80,75,290},
  662.         Statictext {
  663.             disabled,
  664.             "all the files on this volume."
  665.         }
  666.     }
  667. };
  668. resource 'ALRT' (133,preload,nonpurgeable) {
  669.     {50, 40, 300, 460},
  670.     133,
  671.     {    /* array: 4 elements */
  672.         /* [1] */
  673.         OK, visible, sound1;
  674.         /* [2] */
  675.         OK, visible, sound1;
  676.         /* [3] */
  677.         OK, visible, sound1;
  678.         /* [4] */
  679.         OK, visible, sound1
  680.     }
  681. };
  682.  
  683. resource 'DITL' (133,preload,nonpurgeable) {
  684.     {    /* array DITLarray: 8 elements */
  685.         /* [1] */
  686.         {213, 180, 233, 240},
  687.         Button {
  688.             enabled,
  689.             "OK"
  690.         };
  691.         /* [2] */
  692.         {19, 92, 34, 267},
  693.         StaticText {
  694.             enabled,
  695.             "A SCSI error has occurred!"
  696.         };
  697.         /* [3] */
  698.         {70, 15, 85, 251},
  699.         StaticText {
  700.             disabled,
  701.             "SCSI command or trap that failed:"
  702.         };
  703.         /* [4] */
  704.         {85, 35, 99, 290},
  705.         StaticText {
  706.             disabled,
  707.             "^0"
  708.         };
  709.         /* [5] */
  710.         {115, 15, 130, 125},
  711.         StaticText {
  712.             disabled,
  713.             "Type of error:"
  714.         };
  715.         /* [6] */
  716.         {130, 35, 145, 290},
  717.         StaticText {
  718.             disabled,
  719.             "^1"
  720.         };
  721.         /* [7] */
  722.         {160, 15, 175, 200},
  723.         StaticText {
  724.             disabled,
  725.             "Most probable cause:"
  726.         };
  727.         /* [8] */
  728.         {175, 35, 190, 405},
  729.         StaticText {
  730.             disabled,
  731.             "^2"
  732.         }
  733.     }
  734. };
  735. resource    'STR ' ($A000,preload,nonpurgeable) {
  736.         "_SCSIReset."
  737.         };
  738. resource    'STR ' ($A100,preload,nonpurgeable) {
  739.         "_SCSIGet."
  740.         };
  741. resource    'STR ' ($A200,preload,nonpurgeable) {
  742.         "_SCSISelect."
  743.         };
  744. resource    'STR ' ($A300,preload,nonpurgeable) {
  745.         "_SCSICommand."
  746.         };
  747. resource    'STR ' ($A400,preload,nonpurgeable) {
  748.         "_SCSIComplete."
  749.         };
  750. resource    'STR ' ($A600,preload,nonpurgeable) {
  751.         "_SCSIWrite."
  752.         };
  753. resource    'STR ' ($000,preload,nonpurgeable) {
  754.         "Test Unit Ready."
  755.         };
  756. resource    'STR ' ($400,preload,nonpurgeable) {
  757.         "Format Unit."
  758.         };
  759. resource    'STR ' ($1500,preload,nonpurgeable) {
  760.         "Mode Select."
  761.         };
  762. resource    'STR ' ($1003,preload,nonpurgeable) {
  763.         "Write Fault."
  764.         };
  765. resource    'STR ' ($1004,preload,nonpurgeable) {
  766.         "Drive not ready."
  767.         };
  768. resource    'STR ' ($1020,preload,nonpurgeable) {
  769.         "Command not implemented."
  770.         };
  771. resource    'STR ' ($1024,preload,nonpurgeable) {
  772.         "Bad parameter passed to controller."
  773.         };
  774. resource    'STR ' ($AA02,preload,nonpurgeable) {
  775.         "SCSI communication error."
  776.         };
  777. resource    'STR ' ($AA04,preload,nonpurgeable) {
  778.         "Bad pseudo program."
  779.         };
  780. resource    'STR ' ($AA05,preload,nonpurgeable) {
  781.         "SCSI timing error."
  782.         };
  783. resource    'STR ' ($2003,preload,nonpurgeable) {
  784.         "Drive detects failure during power on diagnostic."
  785.         };
  786. resource    'STR ' ($2004,preload,nonpurgeable) {
  787.         "Drive not up to speed or hardware problem."
  788.         };
  789. resource    'STR ' ($2020,preload,nonpurgeable) {
  790.         "Controller does not support this command."
  791.         };
  792. resource    'STR ' ($2024,preload,nonpurgeable) {
  793.         "Defect in cylinder 0 or bad defect parameters."
  794.         };
  795. resource    'STR ' ($BA02,preload,nonpurgeable) {
  796.         "Wrong address or no termination."
  797.         };
  798. resource    'STR ' ($BA04,preload,nonpurgeable) {
  799.         "Programmer error; my fault."
  800.         };
  801. resource    'STR ' ($BA05,preload,nonpurgeable) {
  802.         "Program uses incorrect delay value for your controller."
  803.         };
  804.  
  805. resource 'ALRT' (134,preload,nonpurgeable) {
  806.     {100, 100, 270, 400},
  807.     134,
  808.     {    /* array: 4 elements */
  809.         /* [1] */
  810.         OK, visible, sound1;
  811.         /* [2] */
  812.         OK, visible, sound1;
  813.         /* [3] */
  814.         OK, visible, sound1;
  815.         /* [4] */
  816.         OK, visible, sound1
  817.     }
  818. };
  819.  
  820. resource 'DITL' (134,preload,nonpurgeable) {
  821.     {    /* array DITLarray: 4 elements */
  822.         /* [1] */
  823.         {129, 120, 149, 180},
  824.         Button {
  825.             enabled,
  826.             "OK"
  827.         };
  828.         /* [2] */
  829.         {20, 90, 35, 252},
  830.         StaticText {
  831.             enabled,
  832.             "No more defects can be"
  833.         };
  834.         /* [3] */
  835.         {40, 90, 55, 263},
  836.         StaticText {
  837.             disabled,
  838.             "added to the defect list."
  839.         };
  840.         /* [4] */
  841.         {60, 90, 75, 263},
  842.         StaticText {
  843.             disabled,
  844.             "The buffer is full.  The"
  845.         };
  846.         /* [5] */
  847.         {80, 90, 95, 275},
  848.         StaticText {
  849.             disabled,
  850.             "first 60 defects were used."
  851.         }
  852.     }
  853. };
  854. resource 'DLOG' (135,preload,nonpurgeable) {
  855.     {131, 131, 231, 381},
  856.     dBoxProc,
  857.     visible,
  858.     noGoAway,
  859.     0x0,
  860.     135,
  861.     ""
  862. };
  863.  
  864. resource 'DITL' (135,preload,nonpurgeable) {
  865.     {    /* array DITLarray: 3 elements */
  866.         /* [1] */
  867.         {15, 20, 30, 230},
  868.         StaticText {
  869.             enabled,
  870.             "Now formatting SCSI disk #^0."
  871.         };
  872.         /* [2] */
  873.         {35, 20, 50, 224},
  874.         StaticText {
  875.             disabled,
  876.             "This will take between three"
  877.         };
  878.         /* [3] */
  879.         {55, 20, 70, 166},
  880.         StaticText {
  881.             disabled,
  882.             "and fifteen minutes."
  883.         }
  884.     }
  885. };
  886.